
package fileby.ctrl.breadcrumbs;

import com.google.inject.Inject;
import fileby.model.ISourceHandler;

/**
 *
 * @author Jacob
 */
public class BreadCrumbListenerFactory implements IBreadCrumbListenerProvider {

    private ISourceHandler sourceHandler;

    @Inject
    public BreadCrumbListenerFactory(ISourceHandler sourceHandler) {
        this.sourceHandler = sourceHandler;
    }

    public BreadCrumbListener create() {
        return new BreadCrumbListener(sourceHandler);
    }

}
